package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生课堂互动记录对象 sys_student_interaction
 *
 * @author 杨佳霖
 * @date 2025-08-29
 */
public class AsysStudentInteraction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private Long userId;

    /** 课程 */
    @Excel(name = "课程")
    private Long courseId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 互动类型：1-提问 2-回答 3-讨论 4-投票 5-签到 */
    @Excel(name = "互动类型：1-提问 2-回答 3-讨论 4-投票 5-签到")
    private Long interactionType;

    /** 互动内容 */
    @Excel(name = "互动内容")
    private String interactionContent;

    /** 互动时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "互动时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date interactionTime;

    /** 获得的积分奖励 */
    @Excel(name = "获得的积分奖励")
    private Long scoreRewarded;

    /** 状态：0-无效 1-有效 */
    @Excel(name = "状态：0-无效 1-有效")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId()
    {
        return courseId;
    }

    public void setCourseName(String courseName)
    {
        this.courseName = courseName;
    }

    public String getCourseName()
    {
        return courseName;
    }

    public void setInteractionType(Long interactionType)
    {
        this.interactionType = interactionType;
    }

    public Long getInteractionType()
    {
        return interactionType;
    }

    public void setInteractionContent(String interactionContent)
    {
        this.interactionContent = interactionContent;
    }

    public String getInteractionContent()
    {
        return interactionContent;
    }

    public void setInteractionTime(Date interactionTime)
    {
        this.interactionTime = interactionTime;
    }

    public Date getInteractionTime()
    {
        return interactionTime;
    }

    public void setScoreRewarded(Long scoreRewarded)
    {
        this.scoreRewarded = scoreRewarded;
    }

    public Long getScoreRewarded()
    {
        return scoreRewarded;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("courseId", getCourseId())
                .append("courseName", getCourseName())
                .append("interactionType", getInteractionType())
                .append("interactionContent", getInteractionContent())
                .append("interactionTime", getInteractionTime())
                .append("scoreRewarded", getScoreRewarded())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
